package com.demo.pos;

import com.demo.pos.common.dao.entity.User;
import com.demo.pos.service.UserService;
import com.demo.pos.common.dao.entity.User;
import com.demo.pos.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/3/7 0007.
 */

@RestController
public class UserController {


    @Autowired
    UserService userService;

    @RequestMapping("/")
    public User hello(){
        return userService.findById(1);
    }
}
